<?php

	require( 'os/' . PHP_OS  . '.php');
	require( 'config.php');
	E::bootstrap($db);

        if( get_magic_quotes_gpc() ){
                magic_quotes_decode($_POST);
                magic_quotes_decode($_GET);
                magic_quotes_decode($_COOKIE);
        }

        function magic_quotes_decode(&$A){
                assert('is_array($A)');
                foreach($A as &$v){
                        if( is_array($v) ){
                                magic_quotes_decode($v);
                        }else{
                                $v      =& stripslashes($v);
                        }
                }
        }

?>
